//
//  ZTDBManager.h
//  GyroOrientCalculate
//
//  Created by TangBin on 2020/1/26.
//  Copyright © 2020 TangBin. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// 项目数据库操作
@interface ZTDBManager : NSObject

+ (instancetype)sharedInstance;


/// 点击通知
/// @param model model description
//- (void)addPushInfo:(XJWaresWanyModel *)model;

/// 把推送信息修改为已读状态
- (void)updatePushInfoRead:(NSInteger)loginId;

/// 获取未读通知数量
- (NSInteger)queryUnreadPushNum:(NSInteger)loginId;

/// 读取数据
/// @param isRead NO 未读；YES所有
- (NSArray *)queryPushInfos:(BOOL)isRead loginId:(NSInteger)loginId;

/// 清空所有推送信息
- (void)clearAllPushInfos:(NSInteger)loginId;

/// 查询未读的最新的一条
/// @param loginId loginId description
//- (XJWaresWanyModel *)queryPushUnreadInfo:(NSInteger)loginId;

/// 删除帖子对应的所有的通知
/// @param pid pid description
- (void)deleteCirclePush:(NSInteger)pid;

@end

NS_ASSUME_NONNULL_END
